package com.news.service;

import java.util.List;

import com.news.dao.CategoryDao;
import com.news.entity.Category;
import com.news.entity.News;
import com.news.util.PageModel;

public interface CategoryService {

	public abstract void setCategoryDao(CategoryDao categoryDao);

	public abstract List<News> getAllCategory();

	public abstract Category getCategory(int cid);

	public abstract List<News> getAllCategoryBycid(Integer currentPage,
			Integer rows, int cid);

	public abstract PageModel getPageModelBycid(Integer currentPage,
			Integer rows, int cid);

	public abstract PageModel getPageModelByCid(Integer currentPage,
			Integer rows, int pid);

}